//
//  QinKeyBoardController.h
//  自定义聊天界面和键盘-多选照片-语音-表情-文本
//
//  Created by qinlongqing on 14-10-13.
//  Copyright (c) 2014年 qinlongqing. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "QinMessageInputView.h"
#import "SendAudioView.h"
#import "SendFaceView.h"
#import "SendPhotoView.h"

#define CurrentSystemIsAbove_IOS7 [[[UIDevice currentDevice] systemVersion] floatValue]>=7.0

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]


//#define kToolFrameCustom           352//自定义键盘的Y坐标
//#define kToolFrameSystemChinese    316//中文键盘时的Y坐标
#define kSendAudioViewFrameHeight        176//发送语音view的高度
#define kSendFaceViewFrameHeight         176//发送表情view的高度
#define kSendPhotoViewFrameHeight        176//发送图片view的高度

typedef enum {
    sendTextViewType=1,
    sendAudioViewType,
    sendFaceViewType,
    sendPhotoViewType,
}CustomViewType;

@protocol SendMessageDelegate <NSObject>
- (void)sendMessage:(NSString *)message;

@end
@interface QinKeyBoardController : NSObject


@property (nonatomic,strong) UIViewController *viewController;
@property (nonatomic,strong) UITableView *tableview;
@property (nonatomic,assign)CGFloat previousTextViewContentHeight;
@property (nonatomic,strong)QinMessageInputView *messageInputView;//自定义tool
@property (nonatomic,strong)SendAudioView *sendAudioView;//发送语音的view
@property (nonatomic,strong)SendFaceView *sendFaceView;//发送表情的view
@property (nonatomic,strong)SendPhotoView *sendPhotoView;//发送照片的view

@property (nonatomic,strong)id<SendMessageDelegate>messageDelegate;

+ (QinKeyBoardController *)instance;

- (void)showSystemKeyboardToolAnimation:(BOOL)isTextField withSender:(UIButton *)sender;

- (void)showCustomKeyboardToolAnimation:(CustomViewType)customViewType;

- (void)hiddenSystemKeyboardToolAnimation;

- (void)hiddenCustomKeyboardToolAnimation;

- (void)downMytableview;


@end
